package edums.common.view;

import java.util.Map;

import javax.servlet.RequestDispatcher;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.view.AbstractView;

public class ForwardView extends AbstractView {
	
	public void renderMergedOutputModel(Map map, HttpServletRequest request, HttpServletResponse response) throws Exception{
		
		String url = (String)map.get("url");
		request.setAttribute("DATA", map);
		RequestDispatcher rdp = request.getRequestDispatcher(url);
		rdp.forward(request, response);
	}
}
